package com.noreply.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author
 * @description
 * @datetime 2021/6/23 16:59
 */
//@RestController
//@RequestMapping({"${server.error.path:${error.path:/error}}"})
//public class ErrorController implements org.springframework.boot.web.servlet.error.ErrorController {
//    @GetMapping
//    public String errorHandle(HttpServletRequest request, HttpServletResponse response) {
//        return "hi error";
//    }
//}
